package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.domain.Vip;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IVipService {

    /**
     * 分页
     * @param qo
     * @return
     */
    PageInfo query(QueryObject qo);



    /**
     * 根据id查询vip对象
     * @param id
     * @return
     */
    Vip getById(Long id);

    /**
     * 根据id查询user对象(是否是VIP)
     * @param user
     * @return
     */
    User isVIP(User user);
}
